package com.ljh.user.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author: Themberfue
 * @date: 2025/4/25 12:08
 * @description:
 */
@Component
public class HelloQueueListener {
    @RabbitListener(queues = "hello")
    public void process(Message message) {
        System.out.println("成功收到消息" + message);
    }
}
